package com.sne.airways.system.controller;

import com.sne.airways.basecore.controller.BaseController;
import com.sne.airways.system.dto.TdOperationLogDTO;
import com.sne.airways.system.service.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 卞京帅{bjslogin@gmail.com}
 * Date: 12-11-25
 * Time: 下午1:49
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/system/user")
public class OperationLogController extends BaseController {


    @Autowired
    private OperationLogService operationLogService;


    @RequestMapping("/queryOperationLogList")
    @ResponseBody
    public void queryOperationLogList(int start,int limit,String moduleName,String opTypeName){
        List<TdOperationLogDTO> operationLogDTOList = operationLogService.queryOperationLogList(start,limit,moduleName,opTypeName);
        int count = operationLogService.queryOperationLogCount(moduleName,opTypeName);
        renderPageJsonArray(operationLogDTOList,count);
    }
}
